import { DbModule } from '@libs/db';
import { Global, Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { MulterModule } from '@nestjs/platform-express';

@Global()
@Module({
  imports: [
    MulterModule.register({
      dest: 'static/uploads',
    }),
    ConfigModule.forRoot({
      isGlobal: true,
    }),
    DbModule,
  ],
  providers: [],
  exports: [DbModule, MulterModule],
})
export class CommonModule {}
